using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ShakeReportRequest : GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ShakeReportRequest, ShakeReportRequest.Builder>
		{
			private bool resultIsReadOnly;
			private ShakeReportRequest result;
			protected override ShakeReportRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ShakeReportRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ShakeReportRequest DefaultInstanceForType
			{
				get
				{
					return ShakeReportRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint OpCode
			{
				get
				{
					return this.result.OpCode;
				}
				set
				{
					this.SetOpCode(value);
				}
			}
			public float Longitude
			{
				get
				{
					return this.result.Longitude;
				}
				set
				{
					this.SetLongitude(value);
				}
			}
			public float Latitude
			{
				get
				{
					return this.result.Latitude;
				}
				set
				{
					this.SetLatitude(value);
				}
			}
			public int Precision
			{
				get
				{
					return this.result.Precision;
				}
				set
				{
					this.SetPrecision(value);
				}
			}
			public string MacAddr
			{
				get
				{
					return this.result.MacAddr;
				}
				set
				{
					this.SetMacAddr(value);
				}
			}
			public string CellId
			{
				get
				{
					return this.result.CellId;
				}
				set
				{
					this.SetCellId(value);
				}
			}
			public uint ImgId
			{
				get
				{
					return this.result.ImgId;
				}
				set
				{
					this.SetImgId(value);
				}
			}
			public uint Times
			{
				get
				{
					return this.result.Times;
				}
				set
				{
					this.SetTimes(value);
				}
			}
			public int GPSSource
			{
				get
				{
					return this.result.GPSSource;
				}
				set
				{
					this.SetGPSSource(value);
				}
			}
			public Builder()
			{
				this.result = ShakeReportRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ShakeReportRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ShakeReportRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ShakeReportRequest other = this.result;
					this.result = new ShakeReportRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ShakeReportRequest.Builder Clear()
			{
				this.result = ShakeReportRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ShakeReportRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ShakeReportRequest.Builder(this.result);
				}
				return new ShakeReportRequest.Builder().MergeFrom(this.result);
			}
			public override ShakeReportRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ShakeReportRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is ShakeReportRequest)
				{
					return this.MergeFrom((ShakeReportRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ShakeReportRequest.Builder MergeFrom(ShakeReportRequest other)
			{
				return this;
			}
			public override ShakeReportRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ShakeReportRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ShakeReportRequest._shakeReportRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ShakeReportRequest._shakeReportRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 37u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasOpCode = input.ReadUInt32(ref this.result.opCode_);
								continue;
							}
							if (num3 == 29u)
							{
								this.result.hasLongitude = input.ReadFloat(ref this.result.longitude_);
								continue;
							}
							if (num3 == 37u)
							{
								this.result.hasLatitude = input.ReadFloat(ref this.result.latitude_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 58u)
						{
							if (num3 == 40u)
							{
								this.result.hasPrecision = input.ReadInt32(ref this.result.precision_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasMacAddr = input.ReadString(ref this.result.macAddr_);
								continue;
							}
							if (num3 == 58u)
							{
								this.result.hasCellId = input.ReadString(ref this.result.cellId_);
								continue;
							}
						}
						else
						{
							if (num3 == 64u)
							{
								this.result.hasImgId = input.ReadUInt32(ref this.result.imgId_);
								continue;
							}
							if (num3 == 72u)
							{
								this.result.hasTimes = input.ReadUInt32(ref this.result.times_);
								continue;
							}
							if (num3 == 80u)
							{
								this.result.hasGPSSource = input.ReadInt32(ref this.result.gPSSource_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ShakeReportRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public ShakeReportRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public ShakeReportRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public ShakeReportRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public ShakeReportRequest.Builder SetOpCode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpCode = true;
				this.result.opCode_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearOpCode()
			{
				this.PrepareBuilder();
				this.result.hasOpCode = false;
				this.result.opCode_ = 0u;
				return this;
			}
			public ShakeReportRequest.Builder SetLongitude(float value)
			{
				this.PrepareBuilder();
				this.result.hasLongitude = true;
				this.result.longitude_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearLongitude()
			{
				this.PrepareBuilder();
				this.result.hasLongitude = false;
				this.result.longitude_ = 0f;
				return this;
			}
			public ShakeReportRequest.Builder SetLatitude(float value)
			{
				this.PrepareBuilder();
				this.result.hasLatitude = true;
				this.result.latitude_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearLatitude()
			{
				this.PrepareBuilder();
				this.result.hasLatitude = false;
				this.result.latitude_ = 0f;
				return this;
			}
			public ShakeReportRequest.Builder SetPrecision(int value)
			{
				this.PrepareBuilder();
				this.result.hasPrecision = true;
				this.result.precision_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearPrecision()
			{
				this.PrepareBuilder();
				this.result.hasPrecision = false;
				this.result.precision_ = 0;
				return this;
			}
			public ShakeReportRequest.Builder SetMacAddr(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMacAddr = true;
				this.result.macAddr_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearMacAddr()
			{
				this.PrepareBuilder();
				this.result.hasMacAddr = false;
				this.result.macAddr_ = "";
				return this;
			}
			public ShakeReportRequest.Builder SetCellId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasCellId = true;
				this.result.cellId_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearCellId()
			{
				this.PrepareBuilder();
				this.result.hasCellId = false;
				this.result.cellId_ = "";
				return this;
			}
			public ShakeReportRequest.Builder SetImgId(uint value)
			{
				this.PrepareBuilder();
				this.result.hasImgId = true;
				this.result.imgId_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearImgId()
			{
				this.PrepareBuilder();
				this.result.hasImgId = false;
				this.result.imgId_ = 0u;
				return this;
			}
			public ShakeReportRequest.Builder SetTimes(uint value)
			{
				this.PrepareBuilder();
				this.result.hasTimes = true;
				this.result.times_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearTimes()
			{
				this.PrepareBuilder();
				this.result.hasTimes = false;
				this.result.times_ = 0u;
				return this;
			}
			public ShakeReportRequest.Builder SetGPSSource(int value)
			{
				this.PrepareBuilder();
				this.result.hasGPSSource = true;
				this.result.gPSSource_ = value;
				return this;
			}
			public ShakeReportRequest.Builder ClearGPSSource()
			{
				this.PrepareBuilder();
				this.result.hasGPSSource = false;
				this.result.gPSSource_ = 0;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int OpCodeFieldNumber = 2;
		public const int LongitudeFieldNumber = 3;
		public const int LatitudeFieldNumber = 4;
		public const int PrecisionFieldNumber = 5;
		public const int MacAddrFieldNumber = 6;
		public const int CellIdFieldNumber = 7;
		public const int ImgIdFieldNumber = 8;
		public const int TimesFieldNumber = 9;
		public const int GPSSourceFieldNumber = 10;
		private static readonly ShakeReportRequest defaultInstance;
		private static readonly string[] _shakeReportRequestFieldNames;
		private static readonly uint[] _shakeReportRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasOpCode;
		private uint opCode_;
		private bool hasLongitude;
		private float longitude_;
		private bool hasLatitude;
		private float latitude_;
		private bool hasPrecision;
		private int precision_;
		private bool hasMacAddr;
		private string macAddr_ = "";
		private bool hasCellId;
		private string cellId_ = "";
		private bool hasImgId;
		private uint imgId_;
		private bool hasTimes;
		private uint times_;
		private bool hasGPSSource;
		private int gPSSource_;
		private int memoizedSerializedSize = -1;
		public static ShakeReportRequest DefaultInstance
		{
			get
			{
				return ShakeReportRequest.defaultInstance;
			}
		}
		public override ShakeReportRequest DefaultInstanceForType
		{
			get
			{
				return ShakeReportRequest.DefaultInstance;
			}
		}
		protected override ShakeReportRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint OpCode
		{
			get
			{
				return this.opCode_;
			}
		}
		public float Longitude
		{
			get
			{
				return this.longitude_;
			}
		}
		public float Latitude
		{
			get
			{
				return this.latitude_;
			}
		}
		public int Precision
		{
			get
			{
				return this.precision_;
			}
		}
		public string MacAddr
		{
			get
			{
				return this.macAddr_;
			}
		}
		public string CellId
		{
			get
			{
				return this.cellId_;
			}
		}
		public uint ImgId
		{
			get
			{
				return this.imgId_;
			}
		}
		public uint Times
		{
			get
			{
				return this.times_;
			}
		}
		public int GPSSource
		{
			get
			{
				return this.gPSSource_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasOpCode && this.hasLongitude && this.hasLatitude && this.hasPrecision && this.hasImgId && this.hasTimes && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasOpCode)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.OpCode);
				}
				if (this.hasLongitude)
				{
					num += CodedOutputStream.ComputeFloatSize(3, this.Longitude);
				}
				if (this.hasLatitude)
				{
					num += CodedOutputStream.ComputeFloatSize(4, this.Latitude);
				}
				if (this.hasPrecision)
				{
					num += CodedOutputStream.ComputeInt32Size(5, this.Precision);
				}
				if (this.hasMacAddr)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.MacAddr);
				}
				if (this.hasCellId)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.CellId);
				}
				if (this.hasImgId)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.ImgId);
				}
				if (this.hasTimes)
				{
					num += CodedOutputStream.ComputeUInt32Size(9, this.Times);
				}
				if (this.hasGPSSource)
				{
					num += CodedOutputStream.ComputeInt32Size(10, this.GPSSource);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ShakeReportRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] shakeReportRequestFieldNames = ShakeReportRequest._shakeReportRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, shakeReportRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasOpCode)
			{
				output.WriteUInt32(2, shakeReportRequestFieldNames[7], this.OpCode);
			}
			if (this.hasLongitude)
			{
				output.WriteFloat(3, shakeReportRequestFieldNames[5], this.Longitude);
			}
			if (this.hasLatitude)
			{
				output.WriteFloat(4, shakeReportRequestFieldNames[4], this.Latitude);
			}
			if (this.hasPrecision)
			{
				output.WriteInt32(5, shakeReportRequestFieldNames[8], this.Precision);
			}
			if (this.hasMacAddr)
			{
				output.WriteString(6, shakeReportRequestFieldNames[6], this.MacAddr);
			}
			if (this.hasCellId)
			{
				output.WriteString(7, shakeReportRequestFieldNames[1], this.CellId);
			}
			if (this.hasImgId)
			{
				output.WriteUInt32(8, shakeReportRequestFieldNames[3], this.ImgId);
			}
			if (this.hasTimes)
			{
				output.WriteUInt32(9, shakeReportRequestFieldNames[9], this.Times);
			}
			if (this.hasGPSSource)
			{
				output.WriteInt32(10, shakeReportRequestFieldNames[2], this.GPSSource);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasOpCode)
			{
				num ^= this.opCode_.GetHashCode();
			}
			if (this.hasLongitude)
			{
				num ^= this.longitude_.GetHashCode();
			}
			if (this.hasLatitude)
			{
				num ^= this.latitude_.GetHashCode();
			}
			if (this.hasPrecision)
			{
				num ^= this.precision_.GetHashCode();
			}
			if (this.hasMacAddr)
			{
				num ^= this.macAddr_.GetHashCode();
			}
			if (this.hasCellId)
			{
				num ^= this.cellId_.GetHashCode();
			}
			if (this.hasImgId)
			{
				num ^= this.imgId_.GetHashCode();
			}
			if (this.hasTimes)
			{
				num ^= this.times_.GetHashCode();
			}
			if (this.hasGPSSource)
			{
				num ^= this.gPSSource_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ShakeReportRequest shakeReportRequest = value as ShakeReportRequest;
			return shakeReportRequest != null && (this.hasBaseRequest == shakeReportRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(shakeReportRequest.baseRequest_))) && (this.hasOpCode == shakeReportRequest.hasOpCode && (!this.hasOpCode || this.opCode_.Equals(shakeReportRequest.opCode_))) && (this.hasLongitude == shakeReportRequest.hasLongitude && (!this.hasLongitude || this.longitude_.Equals(shakeReportRequest.longitude_))) && (this.hasLatitude == shakeReportRequest.hasLatitude && (!this.hasLatitude || this.latitude_.Equals(shakeReportRequest.latitude_))) && (this.hasPrecision == shakeReportRequest.hasPrecision && (!this.hasPrecision || this.precision_.Equals(shakeReportRequest.precision_))) && (this.hasMacAddr == shakeReportRequest.hasMacAddr && (!this.hasMacAddr || this.macAddr_.Equals(shakeReportRequest.macAddr_))) && (this.hasCellId == shakeReportRequest.hasCellId && (!this.hasCellId || this.cellId_.Equals(shakeReportRequest.cellId_))) && (this.hasImgId == shakeReportRequest.hasImgId && (!this.hasImgId || this.imgId_.Equals(shakeReportRequest.imgId_))) && (this.hasTimes == shakeReportRequest.hasTimes && (!this.hasTimes || this.times_.Equals(shakeReportRequest.times_))) && (this.hasGPSSource == shakeReportRequest.hasGPSSource && (!this.hasGPSSource || this.gPSSource_.Equals(shakeReportRequest.gPSSource_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("OpCode", this.hasOpCode, this.opCode_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("Longitude", this.hasLongitude, this.longitude_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("Latitude", this.hasLatitude, this.latitude_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("Precision", this.hasPrecision, this.precision_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("MacAddr", this.hasMacAddr, this.macAddr_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("CellId", this.hasCellId, this.cellId_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("ImgId", this.hasImgId, this.imgId_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("Times", this.hasTimes, this.times_, writer);
			GeneratedMessageLite<ShakeReportRequest, ShakeReportRequest.Builder>.PrintField("GPSSource", this.hasGPSSource, this.gPSSource_, writer);
		}
		public static ShakeReportRequest ParseFrom(byte[] data)
		{
			return ShakeReportRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ShakeReportRequest MakeReadOnly()
		{
			return this;
		}
		public static ShakeReportRequest.Builder CreateBuilder()
		{
			return new ShakeReportRequest.Builder();
		}
		public override ShakeReportRequest.Builder ToBuilder()
		{
			return ShakeReportRequest.CreateBuilder(this);
		}
		public override ShakeReportRequest.Builder CreateBuilderForType()
		{
			return new ShakeReportRequest.Builder();
		}
		public static ShakeReportRequest.Builder CreateBuilder(ShakeReportRequest prototype)
		{
			return new ShakeReportRequest.Builder(prototype);
		}
		static ShakeReportRequest()
		{
			ShakeReportRequest.defaultInstance = new ShakeReportRequest().MakeReadOnly();
			ShakeReportRequest._shakeReportRequestFieldNames = new string[]
			{
				"BaseRequest",
				"CellId",
				"GPSSource",
				"ImgId",
				"Latitude",
				"Longitude",
				"MacAddr",
				"OpCode",
				"Precision",
				"Times"
			};
			ShakeReportRequest._shakeReportRequestFieldTags = new uint[]
			{
				10u,
				58u,
				80u,
				64u,
				37u,
				29u,
				50u,
				16u,
				40u,
				72u
			};
			object.ReferenceEquals(micromsg.Proto.ShakeReportRequest.Descriptor, null);
		}
	}
}
